package com.zhentao.controller;


import com.zhentao.common.enums.dto.ApUserPaymentOderDto;
import com.zhentao.pojo.ApUserPaymentOrder;
import com.zhentao.service.ApUserPaymentOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/payment")
public class ApUserPaymentOrderController {
    @Autowired
    ApUserPaymentOrderService apiUserPaymentOrderService;
    @PostMapping("/paymentList")
    public List<ApUserPaymentOrder> list(@RequestBody ApUserPaymentOderDto apUserPaymentOderDto){
        List<ApUserPaymentOrder> apiUserPayment = apiUserPaymentOrderService.dsc(apUserPaymentOderDto);
        return apiUserPayment;
    }
}
